#include <stdio.h>
//求所有水仙花数
void main()
{
    int i,j,k;
    for (int n = 100;n < 1000;n++)
    {
        i = n/100;
        j = n/10%10;
        k = n%10;
        if (n==i*i*i + j*j*j + k*k*k)
        printf("%d ",n);
    }
    printf("\n");
}